-- Leviathan (c) v.v.balashoff
local Class = require('leviathan/Class')

local SliderOffsetComponent = Class:derive('SliderOffsetComponent')

function SliderOffsetComponent:new(name, x, y, w, h, slider, target, field, domains)
    self.id = 'SliderOffsetComponent'
    self.typeId = 'SliderOffset'
    self.drawable = false
    self.enabled = true

    self.name = name or self.id
    self.x = x or 0
    self.y = y or 0
    self.w = w or 0
    self.h = h or 0

    self.slider = slider
    self.target = target
    self.targetField = field
    self.domains = domains
end

return SliderOffsetComponent
